home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / 3D & Offscreen for MacApp 3 / 3D & Offscreen Sample.sea / 3D & Offscreen Sample / TVirtualSphere3DTracker.h < prev    next >
Text File  |  1993-05-06  |  2KB  |  74 lines

  1. /*************************************************************************
  2.  
  3.         File: TVirtualSphere3DTracker.h
  4.  
  5.         C O P Y R I G H T    N O T I C E
  6.  
  7.      Copyright ⌐ 1989, 1990, 1991, 1992 Siemens Gammasonics, Inc.
  8.         All Rights Reserved.
  9.         No portions of this source code or the resulting compiled
  10.         program may be used without express written consent and liscensing
  11.         by Siemens Gammasonics, Inc.
  12.  
  13.  
  14.         D E S C R I P T I O N
  15.  
  16.  
  17.         Classes Defined Here:
  18.  
  19.              Ñ
  20.  
  21.  
  22.         Change History
  23.  
  24.         Rev 1    Wed, Apr 14, 1993 @ 6:16 PM        Hanig
  25.             Creation
  26.  
  27.  *************************************************************************/
  28. /*************************************************************************/
  29. #ifndef __TVirtualSphere3DTracker__
  30. #define __TVirtualSphere3DTracker__
  31.  
  32. /*************************************************************************/
  33. /*                            Include Files                                 */
  34. /*************************************************************************/
  35. #ifndef        __T3DTracker__
  36. #include    "T3DTracker.h"
  37. #endif
  38.  
  39. /*************************************************************************/
  40. /*                                Constants                                     */
  41. /*************************************************************************/
  42.  
  43. /*************************************************************************/
  44. /*                           Class Declaration                             */
  45. /*************************************************************************/
  46.  
  47. class TVirtualSphere3DTracker : public T3DTracker
  48. {
  49.     public:
  50.         TVirtualSphere3DTracker(void);
  51.  
  52.         virtual pascal TTracker* TrackMouse(TrackPhase aTrackPhase,
  53.                                         VPoint& anchorPoint,
  54.                                         VPoint& previousPoint,
  55.                                         VPoint& nextPoint,
  56.                                         Boolean mouseDidMove);
  57.     protected:
  58.         virtual pascal void VirtualSphere (VPoint p,  VPoint q,
  59.                                     VPoint cueCenter,  long cueRadius,
  60.                                     CPoint3D *axisOfRotation,  
  61.                                     double  *angleOfRotation);
  62.  
  63.         virtual pascal void PointOnUnitSphere (VPoint p,  VPoint cueCenter,
  64.                                     long cueRadius,  CPoint3D *v);
  65.  
  66.         virtual pascal void CrossProduct3D (const CPoint3D *a,  
  67.                                     const CPoint3D *b, CPoint3D *aCrossB);
  68.         
  69. };
  70.  
  71. /*************************************************************************/
  72. #endif
  73. /*************************************************************************/
  74.